diff options
author | Benjamin Berg <benjamin@sipsolutions.net> | 2006-09-07 16:36:56 +0000 |
---|---|---|
committer | Benjamin Berg <bberg@src.gnome.org> | 2006-09-07 16:36:56 +0000 |
commit | 19d119019df1989e6d7666e3f0f991da7c211f7e (patch) | |
tree | f0c96d83f1c98e5999f74479976b30957bf72e49 | |
parent | 49a8065fa1a6c6a0f22f30aea401f1b23f812435 (diff) | |
download | libwnck-19d119019df1989e6d7666e3f0f991da7c211f7e.tar.gz |
- Fix a critical warning and a leak of a GtkStyle in the glowing code when
2006-09-07 Benjamin Berg <benjamin@sipsolutions.net>
* libwnck/tasklist.c: (take_screenshot):
- Fix a critical warning and a leak of a GtkStyle in the glowing
code when taking the screenshot. (Fixes #354268)
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | libwnck/tasklist.c | 2 |
2 files changed, 8 insertions, 0 deletions
@@ -1,3 +1,9 @@ +2006-09-07 Benjamin Berg <benjamin@sipsolutions.net> + + * libwnck/tasklist.c: (take_screenshot): + - Fix a critical warning and a leak of a GtkStyle in the glowing + code when taking the screenshot. (Fixes #354268) + 2006-09-04 Vincent Untz <vuntz@gnome.org> * configure.in: post-release bump to 2.16.1 diff --git a/libwnck/tasklist.c b/libwnck/tasklist.c index 98fa779..2f4c27d 100644 --- a/libwnck/tasklist.c +++ b/libwnck/tasklist.c @@ -3323,6 +3323,7 @@ take_screenshot (WnckTask *task) style->bg[task->button->state] = style->bg[GTK_STATE_SELECTED]; /* Now attach it to the window */ attached_style = gtk_style_attach (style, pixmap); + g_object_ref (attached_style); /* copy the background */ gdk_draw_drawable (pixmap, attached_style->bg_gc[GTK_STATE_NORMAL], @@ -3336,6 +3337,7 @@ take_screenshot (WnckTask *task) 0, 0, width, height); g_object_unref (style); + gtk_style_detach (attached_style); g_object_unref (attached_style); } |