From 9b9bc1f347a8c7ee9fdd6cce9fd2a1360b3e9a24 Mon Sep 17 00:00:00 2001 From: mbkma Date: Thu, 12 Mar 2026 00:15:11 +0100 Subject: fix memleaks --- sendto/plugins/removable-devices/removable-devices.c | 1 + sendto/plugins/upnp/upnp.c | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'sendto/plugins') 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; } -- cgit v1.2.1