After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 682603 - some memory leaks
some memory leaks
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: general
3.5.x
Other Linux
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-08-24 12:48 UTC by Pavel Vasin
Modified: 2012-08-24 16:45 UTC
See Also:
GNOME target: ---
GNOME version: 3.5/3.6


Attachments
file: fix leaked trash_orig_path (776 bytes, patch)
2012-08-24 12:49 UTC, Pavel Vasin
committed Details | Review
update_restore_from_trash_action: fix leaked tooltip (695 bytes, patch)
2012-08-24 12:50 UTC, Pavel Vasin
committed Details | Review
query: fix leaked location_uri (731 bytes, patch)
2012-08-24 12:50 UTC, Pavel Vasin
committed Details | Review
search: fix leaked display_name (790 bytes, patch)
2012-08-24 12:51 UTC, Pavel Vasin
committed Details | Review
eel: fix GtkTreePath leak (654 bytes, patch)
2012-08-24 12:51 UTC, Pavel Vasin
committed Details | Review
file-utilities: fix GList leak (1019 bytes, patch)
2012-08-24 12:52 UTC, Pavel Vasin
committed Details | Review
file-operations: fix GFile leak (1012 bytes, patch)
2012-08-24 12:52 UTC, Pavel Vasin
committed Details | Review
file-operations: move: fix potential GError leaks (1.03 KB, patch)
2012-08-24 12:54 UTC, Pavel Vasin
committed Details | Review
search-engine: fix GList leak (1010 bytes, patch)
2012-08-24 12:54 UTC, Pavel Vasin
committed Details | Review
canvas-container: fix GArray leak (756 bytes, patch)
2012-08-24 12:55 UTC, Pavel Vasin
committed Details | Review
nautilus_view_preview_files: fix leaked uri (667 bytes, patch)
2012-08-24 12:55 UTC, Pavel Vasin
committed Details | Review
file-operations: fix GList leak (954 bytes, patch)
2012-08-24 12:56 UTC, Pavel Vasin
committed Details | Review
file-utilities: fix leaked path string (1.16 KB, patch)
2012-08-24 12:56 UTC, Pavel Vasin
committed Details | Review
eel: fix leaked path string (650 bytes, patch)
2012-08-24 12:57 UTC, Pavel Vasin
needs-work Details | Review
eel: fix leaked path string v2 (652 bytes, patch)
2012-08-24 16:35 UTC, Pavel Vasin
committed Details | Review

Description Pavel Vasin 2012-08-24 12:48:37 UTC
see attached patches
Comment 1 Pavel Vasin 2012-08-24 12:49:33 UTC
Created attachment 222304 [details] [review]
file: fix leaked trash_orig_path
Comment 2 Pavel Vasin 2012-08-24 12:50:04 UTC
Created attachment 222305 [details] [review]
update_restore_from_trash_action: fix leaked tooltip
Comment 3 Pavel Vasin 2012-08-24 12:50:34 UTC
Created attachment 222306 [details] [review]
query: fix leaked location_uri
Comment 4 Pavel Vasin 2012-08-24 12:51:04 UTC
Created attachment 222307 [details] [review]
search: fix leaked display_name
Comment 5 Pavel Vasin 2012-08-24 12:51:40 UTC
Created attachment 222308 [details] [review]
eel: fix GtkTreePath leak
Comment 6 Pavel Vasin 2012-08-24 12:52:22 UTC
Created attachment 222309 [details] [review]
file-utilities: fix GList leak
Comment 7 Pavel Vasin 2012-08-24 12:52:59 UTC
Created attachment 222310 [details] [review]
file-operations: fix GFile leak
Comment 8 Pavel Vasin 2012-08-24 12:54:14 UTC
Created attachment 222311 [details] [review]
file-operations: move: fix potential GError leaks

not sure about this one
Comment 9 Pavel Vasin 2012-08-24 12:54:48 UTC
Created attachment 222312 [details] [review]
search-engine: fix GList leak
Comment 10 Pavel Vasin 2012-08-24 12:55:20 UTC
Created attachment 222313 [details] [review]
canvas-container: fix GArray leak
Comment 11 Pavel Vasin 2012-08-24 12:55:56 UTC
Created attachment 222314 [details] [review]
nautilus_view_preview_files: fix leaked uri
Comment 12 Pavel Vasin 2012-08-24 12:56:22 UTC
Created attachment 222315 [details] [review]
file-operations: fix GList leak
Comment 13 Pavel Vasin 2012-08-24 12:56:59 UTC
Created attachment 222316 [details] [review]
file-utilities: fix leaked path string
Comment 14 Pavel Vasin 2012-08-24 12:57:27 UTC
Created attachment 222317 [details] [review]
eel: fix leaked path string
Comment 15 Cosimo Cecchi 2012-08-24 16:09:24 UTC
Review of attachment 222304 [details] [review]:

Looks good
Comment 16 Cosimo Cecchi 2012-08-24 16:10:09 UTC
Review of attachment 222305 [details] [review]:

++
Comment 17 Cosimo Cecchi 2012-08-24 16:10:48 UTC
Review of attachment 222306 [details] [review]:

++
Comment 18 Cosimo Cecchi 2012-08-24 16:11:33 UTC
Review of attachment 222307 [details] [review]:

++
Comment 19 Cosimo Cecchi 2012-08-24 16:12:26 UTC
Review of attachment 222308 [details] [review]:

++
Comment 20 Cosimo Cecchi 2012-08-24 16:14:33 UTC
Review of attachment 222309 [details] [review]:

++
Comment 21 Cosimo Cecchi 2012-08-24 16:15:54 UTC
Review of attachment 222310 [details] [review]:

++
Comment 22 Cosimo Cecchi 2012-08-24 16:17:24 UTC
Review of attachment 222312 [details] [review]:

++
Comment 23 Cosimo Cecchi 2012-08-24 16:21:07 UTC
Review of attachment 222313 [details] [review]:

++
Comment 24 Cosimo Cecchi 2012-08-24 16:21:36 UTC
Review of attachment 222314 [details] [review]:

++
Comment 25 Cosimo Cecchi 2012-08-24 16:22:26 UTC
Review of attachment 222315 [details] [review]:

++
Comment 26 Cosimo Cecchi 2012-08-24 16:24:06 UTC
Review of attachment 222316 [details] [review]:

Okay
Comment 27 Cosimo Cecchi 2012-08-24 16:26:14 UTC
Review of attachment 222317 [details] [review]:

::: eel/eel-gnome-extensions.c
@@ +56,3 @@
 	}
 	result = g_strconcat (quoted, " ", args, NULL);
+	g_free (program_in_path);

AFAICS this should be moved right after g_shell_quote(), so to fix the leak also in the case we enter the if (args == NULL || args[0] == '\0') block.
Comment 28 Cosimo Cecchi 2012-08-24 16:28:08 UTC
Review of attachment 222311 [details] [review]:

++
Comment 29 Pavel Vasin 2012-08-24 16:35:41 UTC
Created attachment 222350 [details] [review]
eel: fix leaked path string v2

>AFAICS this should be moved right after g_shell_quote()...

Oops. Fixed
Comment 30 Cosimo Cecchi 2012-08-24 16:36:35 UTC
Review of attachment 222350 [details] [review]:

++

Thanks for all your patches!
Comment 31 Pavel Vasin 2012-08-24 16:39:34 UTC
I don't have git account. Could you commit all this?
Comment 32 Cosimo Cecchi 2012-08-24 16:44:23 UTC
Attachment 222304 [details] pushed as 22ffb97 - file: fix leaked trash_orig_path
Attachment 222305 [details] pushed as caf94f6 - update_restore_from_trash_action: fix leaked tooltip
Attachment 222306 [details] pushed as 221d103 - query: fix leaked location_uri
Attachment 222307 [details] pushed as d319bf3 - search: fix leaked display_name
Attachment 222308 [details] pushed as 60217c6 - eel: fix GtkTreePath leak
Attachment 222309 [details] pushed as ab35125 - file-utilities: fix GList leak
Attachment 222310 [details] pushed as 21ae836 - file-operations: fix GFile leak
Attachment 222311 [details] pushed as 09670c2 - file-operations: move: fix potential GError leaks
Attachment 222312 [details] pushed as 9dfbbf7 - search-engine: fix GList leak
Attachment 222313 [details] pushed as e84114f - canvas-container: fix GArray leak
Attachment 222314 [details] pushed as 00b5c87 - nautilus_view_preview_files: fix leaked uri
Attachment 222315 [details] pushed as c092d25 - file-operations: fix GList leak
Attachment 222316 [details] pushed as 523073f - file-utilities: fix leaked path string
Comment 33 Cosimo Cecchi 2012-08-24 16:45:33 UTC
Pushed to master, thanks again!