[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdegraphics/kolourpaint/pixmapfx
From:       Christoph Feck <christoph () maxiom ! de>
Date:       2009-11-23 16:09:06
Message-ID: 1258992546.031230.2868.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1053200 by cfeck:

Call exit() after app destructor

CCBUG: 215671


 M  +10 -7     kpPixmapFX_MaskOps.cpp  


--- trunk/KDE/kdegraphics/kolourpaint/pixmapfx/kpPixmapFX_MaskOps.cpp #1053199:1053200
@@ -112,15 +112,18 @@
         KP_PRINTF ("Child: created\n");
         close (fds [Read]);
 
-        KApplication app;
+        // use separate scope to force calling app destructor before exit()
+        {
+            KApplication app;
 
-        const int depth = QPixmap::defaultDepth ();
-        KP_PRINTF (("Child: writing default depth\n"));
-        write (fds [Write], &depth, sizeof (depth));
-        KP_PRINTF (("Child: wrote default depth\n"));
+            const int depth = QPixmap::defaultDepth ();
+            KP_PRINTF (("Child: writing default depth\n"));
+            write (fds [Write], &depth, sizeof (depth));
+            KP_PRINTF (("Child: wrote default depth\n"));
 
-        close (fds [Write]);
-        KP_PRINTF ("Child: exit\n");
+            close (fds [Write]);
+            KP_PRINTF ("Child: exit\n");
+        }
         exit (0);
     }
     // In parent?
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic