summaryrefslogtreecommitdiffstats
path: root/plugins/pylon/uca-pylon-camera.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/pylon/uca-pylon-camera.c')
-rw-r--r--plugins/pylon/uca-pylon-camera.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/pylon/uca-pylon-camera.c b/plugins/pylon/uca-pylon-camera.c
index 069d573..02d6795 100644
--- a/plugins/pylon/uca-pylon-camera.c
+++ b/plugins/pylon/uca-pylon-camera.c
@@ -126,12 +126,8 @@ static void uca_pylon_camera_stop_recording(UcaCamera *camera, GError **error)
static gboolean uca_pylon_camera_grab(UcaCamera *camera, gpointer data, GError **error)
{
g_return_val_if_fail(UCA_IS_PYLON_CAMERA(camera), FALSE);
- UcaPylonCameraPrivate *priv = UCA_PYLON_CAMERA_GET_PRIVATE(camera);
- if (data == NULL) {
- data = g_malloc0(priv->roi_width * priv->roi_height * priv->num_bytes);
- }
- pylon_camera_grab(&data, error);
+ pylon_camera_grab(data, error);
return TRUE;
}