]> git.pld-linux.org Git - packages/gnome-panel.git/commitdiff
- fix memleak while applet is removed from panel
authorMarcin Krzyżanowski <marcin.krzyzanowski@hakore.com>
Wed, 29 Oct 2003 20:50:23 +0000 (20:50 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    gnome-panel-finalize-memleak.patch -> 1.1

gnome-panel-finalize-memleak.patch [new file with mode: 0644]

diff --git a/gnome-panel-finalize-memleak.patch b/gnome-panel-finalize-memleak.patch
new file mode 100644 (file)
index 0000000..920fd9b
--- /dev/null
@@ -0,0 +1,15 @@
+diff -Nuard gnome-panel-2.4.1.orig/libpanel-applet/panel-applet.c gnome-panel-2.4.1/libpanel-applet/panel-applet.c
+--- gnome-panel-2.4.1.orig/libpanel-applet/panel-applet.c      2003-07-08 18:04:34.000000000 +0200
++++ gnome-panel-2.4.1/libpanel-applet/panel-applet.c   2003-10-29 21:46:14.000000000 +0100
+@@ -370,6 +370,11 @@
+       g_free (applet->priv->prefs_key);
+       g_free (applet->priv->background);
+       g_free (applet->priv->iid);
++      
++      if (applet->priv->closure)
++              g_closure_unref (applet->priv->closure);
++              
++      applet->priv->closure = NULL;
+       g_free (applet->priv);
+       applet->priv = NULL;
This page took 0.168944 seconds and 4 git commands to generate.