[aravis] fake: don't allocate camera memory in 2 places.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [aravis] fake: don't allocate camera memory in 2 places.
- Date: Fri, 14 May 2010 12:40:50 +0000 (UTC)
commit f28e452554919b538b59346891021ffe0aa99f07
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Fri May 14 14:40:19 2010 +0200
fake: don't allocate camera memory in 2 places.
src/arvfakecamera.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/arvfakecamera.c b/src/arvfakecamera.c
index b02f166..5b20eca 100644
--- a/src/arvfakecamera.c
+++ b/src/arvfakecamera.c
@@ -165,7 +165,7 @@ arv_fake_camera_new (const char *serial_number)
memory = g_malloc0 (ARV_FAKE_CAMERA_MEMORY_SIZE);
fake_camera->priv->genicam_data = arv_get_fake_camera_genicam_data (&fake_camera->priv->genicam_data_size);
- fake_camera->priv->memory = g_malloc0 (ARV_FAKE_CAMERA_MEMORY_SIZE);
+ fake_camera->priv->memory = memory;
strcpy (memory + ARV_GVBS_MANUFACTURER_NAME, "Aravis");
strcpy (memory + ARV_GVBS_MODEL_NAME, "Fake");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]