check the ref_cnt of pixmap before DestroyPixmap.
authorSooChan Lim <sc1.lim@samsung.com>
Fri, 12 Apr 2013 04:44:33 +0000 (13:44 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Fri, 12 Apr 2013 04:47:29 +0000 (13:47 +0900)
Change-Id: I84870f37171d42dabca4ed66ce5983c292c89157

lib/xdbg_log_plist.c
packaging/xorg-x11-module-xdbg.spec

index 6d265e2..08d90ce 100755 (executable)
@@ -358,15 +358,16 @@ static Bool
 XDbgLogDestroyPixmap (PixmapPtr pPixmap)
 {
     Bool ret;
+
     ScreenPtr pScreen = pPixmap->drawable.pScreen;
 
+    if (pPixmap->refcnt == 1)
+        _removeXDbgPixmap (pPixmap);
+
     pScreen->DestroyPixmap = fnDestroyPixmap;
     ret = pScreen->DestroyPixmap(pPixmap);
     pScreen->DestroyPixmap = XDbgLogDestroyPixmap;
 
-    if (pPixmap->refcnt == 0)
-        _removeXDbgPixmap (pPixmap);
-
     return ret;
 }
 
index 00ac226..789738a 100644 (file)
@@ -1,6 +1,6 @@
 Name: xorg-x11-module-xdbg
 Summary: Xserver debug module
-Version: 0.1.9
+Version: 0.1.10
 Release:    1
 Group:      System/Libraries
 License:    MIT