[file-roller] Fix a clipboard paste memory leak



commit b1dd6b0dc2b43c789000707ff659101b3fa590d1
Author: David King <dking redhat com>
Date:   Wed May 11 11:20:08 2016 +0100

    Fix a clipboard paste memory leak
    
    ==11976== 62 (32 direct, 30 indirect) bytes in 1 blocks are definitely lost in l
    oss record 13,911 of 23,059
    ==11976==    at 0x4C2DB9D: malloc (vg_replace_malloc.c:299)
    ==11976==    by 0x73FD038: g_malloc (gmem.c:94)
    ==11976==    by 0x74136C2: g_slice_alloc (gslice.c:1025)
    ==11976==    by 0x7413CED: g_slice_alloc0 (gslice.c:1051)
    ==11976==    by 0x718FE43: g_type_create_instance (gtype.c:1857)
    ==11976==    by 0x717243A: g_object_new_internal (gobject.c:1781)
    ==11976==    by 0x7173D6C: g_object_newv (gobject.c:1928)
    ==11976==    by 0x71744FB: g_object_new (gobject.c:1621)
    ==11976==    by 0x6ECF1C9: _g_local_file_new (glocalfile.c:301)
    ==11976==    by 0x134A9FA7: g_daemon_vfs_get_file_for_path (gdaemonvfs.c:383)
    ==11976==    by 0x134AA041: g_daemon_vfs_get_file_for_uri (gdaemonvfs.c:407)
    ==11976==    by 0x44DBE7: _g_file_append_path (glib-utils.c:1393)
    ==11976==    by 0x43F4F6: fr_window_paste_from_clipboard_data (fr-window.c:8809)
    ==11976==    by 0x44525B: fr_window_paste_selection_to (fr-window.c:8863)
    ==11976==    by 0x44525B: fr_window_paste_selection (fr-window.c:8904)
    ==11976==    by 0x716D517: g_closure_invoke (gclosure.c:804)
    ==11976==    by 0x717ED91: signal_emit_unlocked_R (gsignal.c:3629)
    ==11976==    by 0x718796A: g_signal_emit_valist (gsignal.c:3385)
    ==11976==    by 0x7187D81: g_signal_emit (gsignal.c:3441)
    ==11976==    by 0x6E8E7E4: g_simple_action_activate (gsimpleaction.c:225)
    ==11976==    by 0x512D2D0: gtk_action_muxer_activate_action (gtkactionmuxer.c:41
    2)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=766271

 src/fr-window.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/fr-window.c b/src/fr-window.c
index 339723c..9552215 100644
--- a/src/fr-window.c
+++ b/src/fr-window.c
@@ -8813,6 +8813,7 @@ fr_window_paste_from_clipboard_data (FrWindow        *window,
 
                        g_hash_table_replace (created_dirs, g_strdup (dir), GINT_TO_POINTER (1));
 
+                       g_object_unref (directory);
                        g_free (uri);
                }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]