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

Jérôme Guelfucci noreply at xfce.org
Tue Jun 22 20:04:01 CEST 2010


Updating branch refs/heads/xrandr-display-settings
         to a94f4455bb8a9b8ca7163e521126eb96668142db (commit)
       from 868ed298775740ecf2a220bd7e8f128897de4914 (commit)

commit a94f4455bb8a9b8ca7163e521126eb96668142db
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