summaryrefslogtreecommitdiff
path: root/src/share-extension.c
diff options
context:
space:
mode:
authorMonsta <[email protected]>2014-11-19 21:22:41 +0300
committerStefano Karapetsas <[email protected]>2014-11-20 08:34:57 +0100
commitb642ee7d64402c2a0d6625a2b8ce5115c68f67a7 (patch)
tree7b08bdecab15e6d49f2aee593fa8f2536e4badab /src/share-extension.c
parent0040e135e587c476abd7d99d7a47ae146bad0f55 (diff)
downloadmate-user-share-b642ee7d64402c2a0d6625a2b8ce5115c68f67a7.tar.bz2
mate-user-share-b642ee7d64402c2a0d6625a2b8ce5115c68f67a7.tar.xz
Fix memory leakmate-user-share-1.9.0
Closes https://github.com/mate-desktop/mate-user-share/pull/22
Diffstat (limited to 'src/share-extension.c')
-rw-r--r--src/share-extension.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/share-extension.c b/src/share-extension.c
index 213b044..429d26d 100644
--- a/src/share-extension.c
+++ b/src/share-extension.c
@@ -168,6 +168,8 @@ caja_user_share_get_location_widget (CajaLocationWidgetProvider *iface,
g_object_unref (dir);
}
+ g_object_unref (file);
+
if (enable == FALSE)
return NULL;
@@ -202,9 +204,7 @@ caja_user_share_get_location_widget (CajaLocationWidgetProvider *iface,
gtk_widget_show_all (bar);
- g_object_unref (file);
-
- return bar;
+ return bar;
}
static void