plugged memory leak.

2008-07-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimpsessioninfo-aux.c
	(gimp_session_info_aux_new_from_props): plugged memory leak.

2008-07-22  Sven Neumann  <sven@gimp.org>

	* app/widgets/gimphistogramview.c
	(gimp_histogram_view_set_background): fixed refcounting	issue.
	This plugs the memory leak I tried to fix in 
GimpHistogramEditor.


svn path=/trunk/; revision=26271
This commit is contained in:
Sven Neumann 2008-07-22 10:34:21 +00:00 committed by Sven Neumann
parent 4368010863
commit 5b374543cb
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,14 @@
2008-07-22 Sven Neumann <sven@gimp.org>
* app/widgets/gimpsessioninfo-aux.c
(gimp_session_info_aux_new_from_props): plugged memory leak.
2008-07-22 Sven Neumann <sven@gimp.org>
* app/widgets/gimphistogramview.c
(gimp_histogram_view_set_background): fixed refcounting issue.
This plugs the memory leak I tried to fix in GimpHistogramEditor.
2008-07-22 Sven Neumann <sven@gimp.org>
* app/base/gimphistogram.[ch]: added new method

View File

@ -632,7 +632,7 @@ gimp_histogram_view_set_background (GimpHistogramView *view,
if (view->bg_histogram != histogram)
{
if (view->bg_histogram)
gimp_histogram_ref (view->bg_histogram);
gimp_histogram_unref (view->bg_histogram);
view->bg_histogram = histogram;

View File

@ -100,6 +100,7 @@ gimp_session_info_aux_new_from_props (GObject *object,
}
g_value_unset (&value);
g_string_free (str, TRUE);
}
else
{