diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-06-21 10:24:46 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-06-21 10:24:46 +0200 |
commit | 103aea2d7dc66a6ecae453b6eec3660014ecd94d (patch) | |
tree | d504bbcfa07c5e0121658572188dfc1778760554 | |
parent | 7698ae88012ce8b8693a3e4d22f15cd62b71db5d (diff) |
Fix memory leak in appsrc example
-rw-r--r-- | samples/AppSrc.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/samples/AppSrc.cs b/samples/AppSrc.cs index eebefd7..75f3619 100644 --- a/samples/AppSrc.cs +++ b/samples/AppSrc.cs @@ -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) |