mail[Wesnoth-commits] r40347 - /trunk/src/text.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by guillaume . melquiond on December 23, 2009 - 11:27:
Author: silene
Date: Wed Dec 23 11:27:47 2009
New Revision: 40347

URL: http://svn.gna.org/viewcvs/wesnoth?rev=40347&view=rev
Log:
Plugged memory leak of Cairo surfaces.

Modified:
    trunk/src/text.cpp

Modified: trunk/src/text.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/text.cpp?rev=40347&r1=40346&r2=40347&view=diff
==============================================================================
--- trunk/src/text.cpp (original)
+++ trunk/src/text.cpp Wed Dec 23 11:27:47 2009
@@ -611,6 +611,7 @@
                        surface_buffer_, width, height, 32, stride,
                        0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000));
                cairo_destroy(cr);
+               cairo_surface_destroy(cairo_surface);
        }
 }
 




Related Messages


Powered by MHonArc, Updated Wed Dec 23 14:20:12 2009