summaryrefslogtreecommitdiff
path: root/sendto/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'sendto/plugins')
-rw-r--r--sendto/plugins/removable-devices/removable-devices.c1
-rw-r--r--sendto/plugins/upnp/upnp.c6
2 files changed, 6 insertions, 1 deletions
diff --git a/sendto/plugins/removable-devices/removable-devices.c b/sendto/plugins/removable-devices/removable-devices.c
index 0144be7..a61ae22 100644
--- a/sendto/plugins/removable-devices/removable-devices.c
+++ b/sendto/plugins/removable-devices/removable-devices.c
@@ -198,6 +198,7 @@ get_contacts_widget (NstPlugin *plugin)
gtk_cell_layout_clear (GTK_CELL_LAYOUT (cb));
gtk_combo_box_set_model (GTK_COMBO_BOX (cb), GTK_TREE_MODEL (store));
+ g_object_unref (store);
text_renderer = gtk_cell_renderer_text_new ();
icon_renderer = gtk_cell_renderer_pixbuf_new ();
diff --git a/sendto/plugins/upnp/upnp.c b/sendto/plugins/upnp/upnp.c
index b770e37..d0a4258 100644
--- a/sendto/plugins/upnp/upnp.c
+++ b/sendto/plugins/upnp/upnp.c
@@ -273,8 +273,11 @@ send_files (NstPlugin *plugin,
&interface, -1);
upload_cmd = g_find_program_in_path ("gupnp-upload");
- if (upload_cmd == NULL)
+ if (upload_cmd == NULL) {
+ g_free (udn);
+ g_free (interface);
return FALSE;
+ }
argv = g_ptr_array_new ();
g_ptr_array_add (argv, upload_cmd);
@@ -304,6 +307,7 @@ send_files (NstPlugin *plugin,
g_ptr_array_free (argv, TRUE);
g_free (upload_cmd);
g_free (udn);
+ g_free (interface);
return ret;
}