summaryrefslogtreecommitdiff
path: root/eel/eel-gtk-extensions.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2009-09-07 21:09:11 +0200
committerAlexander Larsson <alexl@redhat.com>2009-09-07 21:09:11 +0200
commit2434bd43cd43eb8ba97b1a956e4b3cd734cf2a91 (patch)
treee275ccb656e37f61e2b1e770eeb33e7b75ce6f95 /eel/eel-gtk-extensions.c
parentb4cd0d66db105822bfa5531a146428b548aff369 (diff)
downloadnautilus-2434bd43cd43eb8ba97b1a956e4b3cd734cf2a91.tar.gz
Fix usage of sink, fixing many recently introduced leaks.
The conversion away from gtk_object_sink was done wrongly causing lots of leaks. fix this.
Diffstat (limited to 'eel/eel-gtk-extensions.c')
-rw-r--r--eel/eel-gtk-extensions.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/eel/eel-gtk-extensions.c b/eel/eel-gtk-extensions.c
index 87c5454f8..96453eec1 100644
--- a/eel/eel-gtk-extensions.c
+++ b/eel/eel-gtk-extensions.c
@@ -395,6 +395,7 @@ eel_pop_up_context_menu (GtkMenu *menu,
event ? event->time : GDK_CURRENT_TIME); /* activate_time */
g_object_ref_sink (menu);
+ g_object_unref (menu);
}
GtkMenuItem *
@@ -1012,7 +1013,8 @@ eel_gtk_get_system_font (void)
font = pango_font_description_copy (label->style->font_desc);
- g_object_ref_sink (label);
+ g_object_ref_sink (label);
+ g_object_unref (label);
return font;
}