]> git.sur5r.net Git - glabels/commitdiff
2007-12-15 Jim Evins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Sat, 15 Dec 2007 17:59:51 +0000 (17:59 +0000)
committerJim Evins <evins@snaught.com>
Sat, 15 Dec 2007 17:59:51 +0000 (17:59 +0000)
* libglabels/db.c: (lgl_db_lookup_template_from_name):
* src/object-editor.c: (gl_object_editor_finalize):
* src/wdgt-media-select.c: (gl_wdgt_media_select_finalize):
Fixed several small memory leaks.

git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@708 f5e0f49d-192f-0410-a22d-a8d8700d0965

glabels2/ChangeLog
glabels2/libglabels/db.c
glabels2/src/object-editor.c
glabels2/src/wdgt-media-select.c

index a486c9af497419d6509af1f360088976c830dfed..92c23daec64f06f719c242c00b87aa6af1e273b5 100644 (file)
@@ -1,3 +1,10 @@
+2007-12-15  Jim Evins  <evins@snaught.com>
+
+       * libglabels/db.c: (lgl_db_lookup_template_from_name):
+       * src/object-editor.c: (gl_object_editor_finalize):
+       * src/wdgt-media-select.c: (gl_wdgt_media_select_finalize):
+               Fixed several small memory leaks.
+
 2007-12-14  Jim Evins  <evins@snaught.com>
 
        * libglabels/db.c:
index 67eb27bdbb21d23822b2b45663f25ce4e593de30..2ca3f83b3fa79d56407cc1e660a3281a2d56369a 100644 (file)
@@ -1372,7 +1372,9 @@ lgl_db_lookup_template_from_name (const gchar *name)
                         {
                                 g_free (candidate_name);
                                 new_template = lgl_template_dup (template);
+                                g_free (new_template->brand);
                                 new_template->brand = g_strdup (alias->brand);
+                                g_free (new_template->part);
                                 new_template->part = g_strdup (alias->part);
                                 return new_template;
                         }
index 1f8ab59e5bcc07d41ae400599fbf4b14354c97be..d33bb4bcfe75552319824201c53655bd6bb5e8e3 100644 (file)
@@ -160,6 +160,7 @@ gl_object_editor_finalize (GObject *object)
        g_return_if_fail (GL_IS_OBJECT_EDITOR (editor));
        g_return_if_fail (editor->priv != NULL);
 
+        g_object_unref (editor->priv->gui);
        g_free (editor->priv);
 
        g_signal_handlers_disconnect_by_func (G_OBJECT(gl_prefs),
index 7ddffe01c08866cdbfb15001374759550d623c0b..edb469aaf1f0edbcb37e341099634547fa8e5d60 100644 (file)
@@ -170,6 +170,7 @@ gl_wdgt_media_select_finalize (GObject *object)
         g_return_if_fail (object != NULL);
         g_return_if_fail (GL_IS_WDGT_MEDIA_SELECT (object));
 
+        g_object_unref (media_select->priv->recent_store);
         g_object_unref (media_select->priv->search_all_store);
         g_free (media_select->priv);