Fix memory leak in appsrc example
This commit is contained in:
parent
7698ae8801
commit
103aea2d7d
@ -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…
x
Reference in New Issue
Block a user