[Xfce4-commits] <xfce4-settings:master> make sure we don't free the not yet allocated modes

Nick Schermer noreply at xfce.org
Sat Aug 28 23:04:35 CEST 2010


Updating branch refs/heads/master
         to 0699fea92b8030cd4c854c0c97e375590e0cfe8d (commit)
       from 208f1e2c5eccba9b378ae33645cb19db4ec80bc0 (commit)

commit 0699fea92b8030cd4c854c0c97e375590e0cfe8d
Author: Lionel Le Folgoc <mrpouit at gmail.com>
Date:   Tue Jun 22 19:41:42 2010 +0200

    make sure we don't free the not yet allocated modes

 dialogs/display-settings/xfce-randr.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dialogs/display-settings/xfce-randr.c b/dialogs/display-settings/xfce-randr.c
index 170292b..6782ecb 100644
--- a/dialogs/display-settings/xfce-randr.c
+++ b/dialogs/display-settings/xfce-randr.c
@@ -197,7 +197,10 @@ xfce_randr_populate (XfceRandr *randr,
         {
             /* make sure we don't free the not yet allocated outputs */
             for (n++; n < randr->resources->noutput; n++)
+            {
                 randr->output_info[n] = NULL;
+                randr->modes[n] = NULL;
+            }
 
             return FALSE;
         }



More information about the Xfce4-commits mailing list