From: Jim Evins Date: Sat, 15 Dec 2007 17:59:51 +0000 (+0000) Subject: 2007-12-15 Jim Evins X-Git-Tag: glabels-2_3_0~292 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=a80d06dfd7b2b2a0ad6fefb8930bf29e0da47bd8;p=glabels 2007-12-15 Jim Evins * 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 --- diff --git a/glabels2/ChangeLog b/glabels2/ChangeLog index a486c9af..92c23dae 100644 --- a/glabels2/ChangeLog +++ b/glabels2/ChangeLog @@ -1,3 +1,10 @@ +2007-12-15 Jim Evins + + * 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 * libglabels/db.c: diff --git a/glabels2/libglabels/db.c b/glabels2/libglabels/db.c index 67eb27bd..2ca3f83b 100644 --- a/glabels2/libglabels/db.c +++ b/glabels2/libglabels/db.c @@ -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; } diff --git a/glabels2/src/object-editor.c b/glabels2/src/object-editor.c index 1f8ab59e..d33bb4bc 100644 --- a/glabels2/src/object-editor.c +++ b/glabels2/src/object-editor.c @@ -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), diff --git a/glabels2/src/wdgt-media-select.c b/glabels2/src/wdgt-media-select.c index 7ddffe01..edb469aa 100644 --- a/glabels2/src/wdgt-media-select.c +++ b/glabels2/src/wdgt-media-select.c @@ -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);