Mercurial > pidgin
changeset 17762:4bb617bd3d71
Get rid of a run-time dbus warning due to an unregistered storedimg.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Fri, 25 May 2007 17:42:51 +0000 |
parents | df0ef1c3b280 |
children | 74f14da7b5ab |
files | libpurple/imgstore.c |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/imgstore.c Fri May 25 17:18:18 2007 +0000 +++ b/libpurple/imgstore.c Fri May 25 17:42:51 2007 +0000 @@ -25,6 +25,7 @@ */ #include <glib.h> +#include "dbus-maybe.h" #include "debug.h" #include "imgstore.h" #include "util.h" @@ -56,6 +57,7 @@ g_return_val_if_fail(size > 0, 0); img = g_new(PurpleStoredImage, 1); + PURPLE_DBUS_REGISTER_POINTER(img, PurpleStoredImage); img->data = data; img->size = size; img->filename = g_strdup(filename); @@ -159,6 +161,7 @@ g_free(img->data); g_free(img->filename); + PURPLE_DBUS_UNREGISTER_POINTER(img); g_free(img); img = NULL; }