[gimp] plugin-browser: Free leaf_ptr when done
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plugin-browser: Free leaf_ptr when done
- Date: Mon, 3 Oct 2011 08:01:38 +0000 (UTC)
commit 3a8d248404ae61b2a40c17b094a31bbb6a0d5016
Author: Mukund Sivaraman <muks banu com>
Date: Mon Oct 3 13:16:16 2011 +0530
plugin-browser: Free leaf_ptr when done
plug-ins/common/plugin-browser.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/common/plugin-browser.c b/plug-ins/common/plugin-browser.c
index 7201271..7ace480 100644
--- a/plug-ins/common/plugin-browser.c
+++ b/plug-ins/common/plugin-browser.c
@@ -288,7 +288,7 @@ get_parent (PluginBrowser *browser,
}
else
{
- const gchar *leaf_ptr;
+ gchar *leaf_ptr;
leaf_ptr = g_strdup (str_ptr + 1);
*str_ptr = '\0';
@@ -299,6 +299,8 @@ get_parent (PluginBrowser *browser,
TREE_COLUMN_MPATH, mpath,
TREE_COLUMN_PATH_NAME, leaf_ptr,
-1);
+
+ g_free (leaf_ptr);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]