diff options
| author | mbkma <[email protected]> | 2026-03-12 00:15:11 +0100 |
|---|---|---|
| committer | Victor Kareh <[email protected]> | 2026-03-12 12:25:51 -0400 |
| commit | 9b9bc1f347a8c7ee9fdd6cce9fd2a1360b3e9a24 (patch) | |
| tree | 10595144675c23073fb030f1fb688bafcd6ae3fb | |
| parent | 94bcf653d09b0b52be0b5dabb51c59071b521fb1 (diff) | |
| download | caja-extensions-9b9bc1f347a8c7ee9fdd6cce9fd2a1360b3e9a24.tar.bz2 caja-extensions-9b9bc1f347a8c7ee9fdd6cce9fd2a1360b3e9a24.tar.xz | |
fix memleaks
| -rw-r--r-- | sendto/plugins/removable-devices/removable-devices.c | 1 | ||||
| -rw-r--r-- | sendto/plugins/upnp/upnp.c | 6 |
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; } |
