After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 665256 - possible memleak in camera-monitor: on_camera_added
possible memleak in camera-monitor: on_camera_added
Status: RESOLVED FIXED
Product: empathy
Classification: Core
Component: VoIP
unspecified
Other Linux
: Normal normal
: ---
Assigned To: empathy-maint
empathy-maint
Depends on:
Blocks:
 
 
Reported: 2011-12-01 00:26 UTC by Raluca-Elena Podiuc
Modified: 2011-12-01 09:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
[PATCH] camera-monitor: fix memleak in on_camera_added (981 bytes, patch)
2011-12-01 00:26 UTC, Raluca-Elena Podiuc
committed Details | Review

Description Raluca-Elena Podiuc 2011-12-01 00:26:52 UTC
Created attachment 202494 [details] [review]
[PATCH] camera-monitor: fix memleak in on_camera_added

{
-  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);
Comment 1 Guillaume Desmottes 2011-12-01 09:38:16 UTC
Merged to master; thanks!