This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/xawtv3.git tree:

Subject: Don't do double exit on xawtv
Author:  Mauro Carvalho Chehab <[email protected]>
Date:    Fri Jan 28 00:46:03 2011 -0200

This patch were backported from Fedora. The original comment says:

        xawtv uses an idle callback to exit when a user requests it to exit.
        When xawtv is blocked waiting for a video frame from a stuck video
        device, the user can try to quit multiple times, which will lead to
        ExitCB getting called multiple times, which leads to a double free
        error.

        This patch protects ExitCB against being called twice. Also see:
        https://bugzilla.redhat.com/show_bug.cgi?id=608344

Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 x11/xt.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

---

http://git.linuxtv.org/xawtv3.git?a=commitdiff;h=33d669bc71f8449a213b953a20d220555d09688d

diff --git a/x11/xt.c b/x11/xt.c
index 1828577..ec56160 100644
--- a/x11/xt.c
+++ b/x11/xt.c
@@ -314,6 +314,12 @@ ExitWP(XtPointer client_data)
 void
 ExitCB(Widget widget, XtPointer client_data, XtPointer calldata)
 {
+    static int exit_pending = 0;
+
+    if (exit_pending)
+        return;
+
+    exit_pending = 1;
     audio_off();
     video_overlay(0);
     video_close();

_______________________________________________
linuxtv-commits mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to