[kazehakase-svn] [3274] * src/kz-notebook.c: Plugged memory leak.

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
Fri Oct 5 15:16:47 JST 2007


Revision: 3274
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3274
Author:   ikezoe
Date:     2007-10-05 15:16:47 +0900 (Fri, 05 Oct 2007)

Log Message:
-----------
* src/kz-notebook.c: Plugged memory leak.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/src/kz-notebook.c

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2007-10-05 06:15:20 UTC (rev 3273)
+++ kazehakase/trunk/ChangeLog	2007-10-05 06:16:47 UTC (rev 3274)
@@ -7,6 +7,7 @@
 	* src/kz-notebook.[ch]: Add kz_notebook_prepend_new_tab().
 	* src/kz-window.c: Use kz_notebook_prepend_new_tab(). Enable to DnD of
 	URI list.
+	* src/kz-notebook.c: Plugged memory leak.
 
 2007-10-04  Hiroyuki Ikezoe  <poinc****@ikezo*****>
 

Modified: kazehakase/trunk/src/kz-notebook.c
===================================================================
--- kazehakase/trunk/src/kz-notebook.c	2007-10-05 06:15:20 UTC (rev 3273)
+++ kazehakase/trunk/src/kz-notebook.c	2007-10-05 06:16:47 UTC (rev 3274)
@@ -222,6 +222,11 @@
 		g_object_unref(priv->dragged_page);
 		priv->dragged_page = NULL;
 	}
+	if (priv->tab_tree)
+	{
+		g_node_destroy(priv->tab_tree);
+		priv->tab_tree = NULL;
+	}
 
 	if (G_OBJECT_CLASS(kz_notebook_parent_class)->dispose)
 		G_OBJECT_CLASS(kz_notebook_parent_class)->dispose(object);




More information about the Kazehakase-cvs mailing list
Zurück zum Archiv-Index