gedit r6980 - in trunk: . plugins/changecase
- From: icq svn gnome org
- To: svn-commits-list gnome org
- Subject: gedit r6980 - in trunk: . plugins/changecase
- Date: Wed, 8 Apr 2009 14:38:11 +0000 (UTC)
Author: icq
Date: Wed Apr 8 14:38:11 2009
New Revision: 6980
URL: http://svn.gnome.org/viewvc/gedit?rev=6980&view=rev
Log:
2009-04-08 Ignacio Casal Quinteiro <nacho resa gmail com>
* plugins/changecase/gedit-changecase-plugin.c:
Fixed memory leak. (Fixes bug #578288).
Modified:
trunk/ChangeLog
trunk/plugins/changecase/gedit-changecase-plugin.c
Modified: trunk/plugins/changecase/gedit-changecase-plugin.c
==============================================================================
--- trunk/plugins/changecase/gedit-changecase-plugin.c (original)
+++ trunk/plugins/changecase/gedit-changecase-plugin.c Wed Apr 8 14:38:11 2009
@@ -275,7 +275,7 @@
{
g_return_if_fail (data != NULL);
- g_free (data);
+ g_slice_free (WindowData, data);
}
static void
@@ -306,7 +306,7 @@
gedit_debug (DEBUG_PLUGINS);
- data = g_new (WindowData, 1);
+ data = g_slice_new (WindowData);
manager = gedit_window_get_ui_manager (window);
@@ -327,6 +327,7 @@
if (data->ui_id == 0)
{
g_warning ("%s", error->message);
+ free_window_data (data);
return;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]