[Xfce4-commits] <xfce4-panel:devel> Fix memory corruption when 46 plugin is finalized.

Nick Schermer noreply at xfce.org
Tue Nov 24 16:38:02 CET 2009


Updating branch refs/heads/devel
         to dc804e34984880616506ee86f770f6fff23825d4 (commit)
       from deb53c758cadc1bc3b5e8a7e56ae2ae79d28b717 (commit)

commit dc804e34984880616506ee86f770f6fff23825d4
Author: Nick Schermer <nick at xfce.org>
Date:   Tue Nov 24 16:24:48 2009 +0100

    Fix memory corruption when 46 plugin is finalized.

 panel/panel-plugin-external-46.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/panel/panel-plugin-external-46.c b/panel/panel-plugin-external-46.c
index ab8300f..062ce38 100644
--- a/panel/panel-plugin-external-46.c
+++ b/panel/panel-plugin-external-46.c
@@ -522,13 +522,12 @@ panel_plugin_external_46_plug_added (GtkSocket *socket)
       for (li = external->queue; li != NULL; li = li->next)
         {
           item = li->data;
-
           panel_plugin_external_46_send_client_event (external, item->message, item->value);
-
           g_slice_free (QueueItem, item);
         }
 
       g_slist_free (external->queue);
+      external->queue = NULL;
     }
 }
 



More information about the Xfce4-commits mailing list