Commit 3adb7c7a authored by Matthias Clasen's avatar Matthias Clasen

Avoid a crash

pointed out in bug 533745
parent 187762d8
......@@ -451,6 +451,7 @@ GdkAtom
gdk_drag_get_selection (GdkDragContext *context)
{
g_return_val_if_fail (GDK_IS_DRAG_CONTEXT (context), GDK_NONE);
g_return_val_if_fail (context->source_window != NULL, GDK_NONE);
return GDK_DRAG_CONTEXT_GET_CLASS (context)->get_selection (context);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment