fix rare gadget dnd crash

SVN revision: 76726
This commit is contained in:
Mike Blumenkrantz 2012-09-17 04:29:49 +00:00
parent 134bed522c
commit 194dbb13a3
1 changed files with 1 additions and 1 deletions

View File

@ -2901,7 +2901,7 @@ _e_gadcon_cb_dnd_move(void *data, const char *type __UNUSED__, void *event)
/* If we move in the same gadcon as the client originates */
if (drag_gcc->gadcon == gc) gcc = drag_gcc;
/* If we move in the newly entered gadcon */
else if (new_gcc->gadcon == gc)
else if (new_gcc && (new_gcc->gadcon == gc))
gcc = new_gcc;
if (!gcc) return;