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

List:       tigervnc-commits
Subject:    [Tigervnc-commits] SF.net SVN: tigervnc:[5111] trunk/unix/xserver/hw/vnc/xvnc.cc
From:       ossman_ () users ! sourceforge ! net
Date:       2013-05-24 10:35:37
Message-ID: E1UfpLV-0004jz-6D () sfp-svn-4 ! v30 ! ch3 ! sourceforge ! com
[Download RAW message or body]

Revision: 5111
          http://tigervnc.svn.sourceforge.net/tigervnc/?rev=5111&view=rev
Author:   ossman_
Date:     2013-05-24 10:35:33 +0000 (Fri, 24 May 2013)
Log Message:
-----------
Fix bad reference counting of the initial randr mode set.

Modified Paths:
--------------
    trunk/unix/xserver/hw/vnc/xvnc.cc

Modified: trunk/unix/xserver/hw/vnc/xvnc.cc
===================================================================
--- trunk/unix/xserver/hw/vnc/xvnc.cc	2013-05-23 11:50:15 UTC (rev 5110)
+++ trunk/unix/xserver/hw/vnc/xvnc.cc	2013-05-24 10:35:33 UTC (rev 5111)
@@ -1353,6 +1353,7 @@
 {
     RRCrtcPtr crtc;
     RRModePtr mode;
+    Bool ret;
 
     if (!RRInit())
         return FALSE;
@@ -1371,8 +1372,11 @@
     if (mode == NULL)
         return FALSE;
 
-    vncRandRCrtcSet(pScreen, crtc, mode, 0, 0, RR_Rotate_0,
-                    crtc->numOutputs, crtc->outputs);
+    ret = vncRandRCrtcSet(pScreen, crtc, mode, 0, 0, RR_Rotate_0,
+                          crtc->numOutputs, crtc->outputs);
+    RRModeDestroy(mode);
+    if (!ret)
+        return FALSE;
 
     return TRUE;
 }

This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.


------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Tigervnc-commits mailing list
Tigervnc-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-commits


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

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