Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/EionRobb/skype4pidgin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEion Robb <eion@robbmob.com>2012-02-16 00:00:34 +0400
committerEion Robb <eion@robbmob.com>2012-02-16 00:00:34 +0400
commitb2492388ada8bd56ec33f73372598df48ae43822 (patch)
tree4f78a8e19917637a70194acb41c9fbd2855ea40f /skype_messaging_x11.c
parentddcb6abb6aad916708b0d869c328e613d50776ea (diff)
Fix potential segfault in X11 connector when unable to connect to Skype
Diffstat (limited to 'skype_messaging_x11.c')
-rw-r--r--skype_messaging_x11.c5
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;
}