summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2014-11-08 14:25:44 +0300
committerinfirit <[email protected]>2014-12-10 10:38:37 +0100
commit7aec152ba9f1f6af1706a5c7608bec317b8fbe79 (patch)
treecf501e3156ed7d047b7910af0dd77d02ed3c8e26
parent523ca6754f1f1f5e86367c644bb721b20f5fbebd (diff)
downloadcaja-7aec152ba9f1f6af1706a5c7608bec317b8fbe79.tar.bz2
caja-7aec152ba9f1f6af1706a5c7608bec317b8fbe79.tar.xz
don't leak memory
-rw-r--r--libcaja-private/caja-icon-container.c1
-rw-r--r--libcaja-private/caja-query.c1
-rw-r--r--src/caja-location-bar.c2
3 files changed, 4 insertions, 0 deletions
diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c
index c33868dd..ed9aa24b 100644
--- a/libcaja-private/caja-icon-container.c
+++ b/libcaja-private/caja-icon-container.c
@@ -2060,6 +2060,7 @@ align_icons (CajaIconContainer *container)
if (!grid)
{
+ g_list_free (unplaced_icons);
return;
}
diff --git a/libcaja-private/caja-query.c b/libcaja-private/caja-query.c
index df4a8753..4b38d830 100644
--- a/libcaja-private/caja-query.c
+++ b/libcaja-private/caja-query.c
@@ -308,6 +308,7 @@ caja_query_parse_xml (char *xml, gsize xml_len)
ctx = g_markup_parse_context_new (&parser, 0, &info, NULL);
g_markup_parse_context_parse (ctx, xml, xml_len, NULL);
+ g_markup_parse_context_free (ctx);
return info.query;
}
diff --git a/src/caja-location-bar.c b/src/caja-location-bar.c
index 428f26a1..a2e27653 100644
--- a/src/caja-location-bar.c
+++ b/src/caja-location-bar.c
@@ -135,6 +135,7 @@ drag_data_received_callback (GtkWidget *widget,
if (names == NULL || *names == NULL)
{
g_warning ("No D&D URI's");
+ g_strfreev (names);
gtk_drag_finish (context, FALSE, FALSE, time);
return;
}
@@ -172,6 +173,7 @@ drag_data_received_callback (GtkWidget *widget,
if (!new_windows_for_extras)
{
+ g_strfreev (names);
gtk_drag_finish (context, FALSE, FALSE, time);
return;
}