diff options
author | Eion Robb <eion@robbmob.com> | 2012-02-16 00:00:34 +0400 |
---|---|---|
committer | Eion Robb <eion@robbmob.com> | 2012-02-16 00:00:34 +0400 |
commit | b2492388ada8bd56ec33f73372598df48ae43822 (patch) | |
tree | 4f78a8e19917637a70194acb41c9fbd2855ea40f | |
parent | ddcb6abb6aad916708b0d869c328e613d50776ea (diff) |
Fix potential segfault in X11 connector when unable to connect to Skype
-rw-r--r-- | skype_messaging_x11.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/skype_messaging_x11.c b/skype_messaging_x11.c index 3814e12..507bd12 100644 --- a/skype_messaging_x11.c +++ b/skype_messaging_x11.c @@ -78,6 +78,7 @@ skype_connect() if (win == None) { XCloseDisplay(disp); + disp = NULL; skype_debug_info("skype_x11", "Could not create X11 messaging window\n"); return FALSE; } @@ -88,7 +89,7 @@ skype_connect() XDestroyWindow(disp, win); XCloseDisplay(disp); win = (Window)None; - skype_win = (Window)None; + disp = NULL; skype_debug_info("skype_x11", "Could not create skype Atom\n"); return FALSE; } @@ -100,7 +101,7 @@ skype_connect() XCloseDisplay(disp); win = (Window)None; XFree(prop); - skype_win = (Window)None; + disp = NULL; skype_debug_info("skype", "Skype instance not found\n"); return FALSE; } |