[cheese] Mark CheeseVideoFormat as a boxed type in the VAPI
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Mark CheeseVideoFormat as a boxed type in the VAPI
- Date: Fri, 15 Nov 2013 15:45:55 +0000 (UTC)
commit 19dbbe3d80696b0fc9046944299bd339a7f74082
Author: David King <amigadave amigadave com>
Date: Fri Nov 15 09:38:21 2013 +0000
Mark CheeseVideoFormat as a boxed type in the VAPI
It was only marked as a compact struct, and so was never freed.
src/cheese-preferences.vala | 4 ++--
src/vapi/cheese-common.vapi | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/cheese-preferences.vala b/src/cheese-preferences.vala
index 5bf0c74..f1e769e 100644
--- a/src/cheese-preferences.vala
+++ b/src/cheese-preferences.vala
@@ -210,7 +210,7 @@ public PreferencesDialog (Cheese.Camera camera)
{
TreeIter iter;
- unowned Cheese.VideoFormat format;
+ Cheese.VideoFormat format;
combo.get_active_iter (out iter);
combo.model.get (iter, 1, out format);
@@ -233,7 +233,7 @@ public PreferencesDialog (Cheese.Camera camera)
{
TreeIter iter;
- unowned Cheese.VideoFormat format;
+ Cheese.VideoFormat format;
combo.get_active_iter (out iter);
combo.model.get (iter, 1, out format);
diff --git a/src/vapi/cheese-common.vapi b/src/vapi/cheese-common.vapi
index daf75ad..0fcdc8c 100644
--- a/src/vapi/cheese-common.vapi
+++ b/src/vapi/cheese-common.vapi
@@ -125,7 +125,7 @@ namespace Cheese
}
[Compact]
- [CCode (type_id = "CHEESE_TYPE_VIDEO_FORMAT", cheader_filename = "cheese-camera-device.h")]
+ [CCode (type_id = "CHEESE_TYPE_VIDEO_FORMAT", cheader_filename = "cheese-camera-device.h", copy_function =
"g_boxed_copy", free_function = "g_boxed_free")]
public class VideoFormat
{
public int height;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]