Changeset - afd5051b6992
[Not reviewed]
default
0 1 0
Jason Maltzen - 7 years ago 2018-05-03 05:43:57
jason@hiddenachievement.com
Unref and garbage collect after capture to clean up memory and stop crash due to running out of memory.
1 file changed with 2 insertions and 0 deletions:
0 comments (0 inline, 0 general)
UI/CaptureView.cs
Show inline comments
...
 
@@ -259,2 +259,4 @@ namespace DesertPaintLab
 
            screenBuffer.GetFromImage(rootImage, rootImage.Colormap, 0, 0, 0, 0, screenWidth, screenHeight);
 
            rootImage.Unref();
 
            System.GC.Collect(); // really, clean up now
 
            //screenBuffer.GetFromDrawable(rootWindow,
0 comments (0 inline, 0 general)