]> git.0d.be Git - empathy.git/commitdiff
Fix memleak in empathy_tp_file_accept. Free content of priv->filename before
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 18 Apr 2009 00:30:21 +0000 (02:30 +0200)
committerLars-Peter Clausen <lars@metafoo.de>
Tue, 21 Apr 2009 08:42:13 +0000 (10:42 +0200)
overwriting it.

libempathy/empathy-tp-file.c

index 2b657007b829d6d7bc08fa1055449599dd1708dd..1f6bedfb2ac850ac7ba0b42c9e9b2d7fde4299c7 100644 (file)
@@ -814,6 +814,7 @@ empathy_tp_file_accept (EmpathyTpFile *tp_file,
   if (error && *error)
     return;
 
+  g_free (tp_file->priv->filename);
   tp_file->priv->filename = g_file_get_basename (gfile);
   g_object_notify (G_OBJECT (tp_file), "filename");