[geany/geany] 1abee9: Plug a memory leak
Colomban Wendling
git-noreply at xxxxx
Mon Apr 14 18:27:35 UTC 2014
Branch: refs/heads/master
Author: Colomban Wendling <ban at herbesfolles.org>
Committer: Colomban Wendling <ban at herbesfolles.org>
Date: Mon, 14 Apr 2014 18:27:35 UTC
Commit: 1abee90434649c6f84f037021743cb11699f9555
https://github.com/geany/geany/commit/1abee90434649c6f84f037021743cb11699f9555
Log Message:
-----------
Plug a memory leak
Modified Paths:
--------------
src/ui_utils.c
Modified: src/ui_utils.c
3 files changed, 3 insertions(+), 0 deletions(-)
===================================================================
@@ -2765,7 +2765,10 @@ GIcon *ui_get_mime_icon(const gchar *mime_type)
ctype = g_content_type_from_mime_type(mime_type);
if (ctype)
+ {
icon = g_content_type_get_icon(ctype);
+ g_free(ctype);
+ }
/* fallback if icon lookup failed, like it might happen on Windows (?) */
if (! icon)
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list