Fix memory leak in appsrc example

This commit is contained in:
Sebastian Dröge 2009-06-21 10:24:46 +02:00
parent 7698ae8801
commit 103aea2d7d

View file

@ -74,7 +74,10 @@ public class AppSrcDemo
context.Color = new Color(0, 0, 1.0);
context.Stroke();
}
return img.Data;
byte[] data = img.Data;
img.Destroy();
return data;
}
static void MessageHandler(object sender, MessageArgs args)