[empathy] camera-monitor: fix memleak in on_camera_added
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] camera-monitor: fix memleak in on_camera_added
- Date: Thu, 1 Dec 2011 09:38:02 +0000 (UTC)
commit b1e73b93c00a06152a52ce5e41f063655e2f5c13
Author: Raluca Elena Podiuc <ralucaelena1985 gmail com>
Date: Wed Nov 30 23:12:06 2011 +0200
camera-monitor: fix memleak in on_camera_added
https://bugzilla.gnome.org/show_bug.cgi?id=665256
libempathy/empathy-camera-monitor.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-camera-monitor.c b/libempathy/empathy-camera-monitor.c
index 7d9d695..a92349c 100644
--- a/libempathy/empathy-camera-monitor.c
+++ b/libempathy/empathy-camera-monitor.c
@@ -115,11 +115,13 @@ on_camera_added (CheeseCameraDeviceMonitor *device,
gint api_version,
EmpathyCameraMonitor *self)
{
- EmpathyCamera *camera = empathy_camera_new (id, filename, product_name);
+ EmpathyCamera *camera;
if (self->priv->cameras == NULL)
return;
+ camera = empathy_camera_new (id, filename, product_name);
+
g_queue_push_tail (self->priv->cameras, camera);
self->priv->num_cameras++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]