Avoid a crash

pointed out in bug 533745
This commit is contained in:
Matthias Clasen 2010-12-22 14:08:03 -05:00
parent 187762d8b3
commit 3adb7c7a49

View File

@ -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);
}