mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
Fix memory leak in appsrc example
This commit is contained in:
parent
7698ae8801
commit
103aea2d7d
1 changed files with 4 additions and 1 deletions
|
@ -74,7 +74,10 @@ public class AppSrcDemo
|
||||||
context.Color = new Color(0, 0, 1.0);
|
context.Color = new Color(0, 0, 1.0);
|
||||||
context.Stroke();
|
context.Stroke();
|
||||||
}
|
}
|
||||||
return img.Data;
|
|
||||||
|
byte[] data = img.Data;
|
||||||
|
img.Destroy();
|
||||||
|
return data;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void MessageHandler(object sender, MessageArgs args)
|
static void MessageHandler(object sender, MessageArgs args)
|
||||||
|
|
Loading…
Reference in a new issue