diff options
Diffstat (limited to 'gtk/gtkclipboard.c')
-rw-r--r-- | gtk/gtkclipboard.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk/gtkclipboard.c b/gtk/gtkclipboard.c index 150e801a25..bf88e8de7a 100644 --- a/gtk/gtkclipboard.c +++ b/gtk/gtkclipboard.c @@ -1245,7 +1245,9 @@ clipboard_image_received_func (GtkClipboard *clipboard, { WaitResults *results = data; - results->data = g_object_ref (pixbuf); + if (pixbuf) + results->data = g_object_ref (pixbuf); + g_main_loop_quit (results->loop); } |