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>2007-11-19 07:40:59 +0300
committerEion Robb <eion@robbmob.com>2007-11-19 07:40:59 +0300
commit7163e63099e9e30d52170c848835a061b9ba39a6 (patch)
tree85fd13ed4fae32a70a28f73976947c216fd6e00a /skype_messaging_x11.c
parent5fb0fa3f5218239792ff7cdefda2067b2d333651 (diff)
Removed X11 crash on plugin shutdown
Diffstat (limited to 'skype_messaging_x11.c')
-rw-r--r--skype_messaging_x11.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/skype_messaging_x11.c b/skype_messaging_x11.c
index 1947dbf..518f712 100644
--- a/skype_messaging_x11.c
+++ b/skype_messaging_x11.c
@@ -63,15 +63,14 @@ skype_connect()
static void
skype_disconnect()
{
- XEvent e;
+ XEvent *e;
run_loop = FALSE;
skype_win = (Window)-1;
-
- //clear the XEvent buffer
- memset(&e, 0, sizeof(e));
- e.xclient.type = DestroyNotify;
- XSendEvent(disp, win, False, 0, &e);
+
+ e = g_new0(XEvent, 1);
+ e->xclient.type = DestroyNotify;
+ XSendEvent(disp, win, False, 0, e);
XDestroyWindow(disp, win);
XCloseDisplay(disp);