[maemo-commits] [maemo-commits] r16067 - projects/haf/branches/hildon-thumbnail/daemonize/thumbs
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Sep 8 20:36:42 EEST 2008
- Previous message: [maemo-commits] r16066 - projects/haf/branches/hildon-thumbnail/daemonize/thumbs
- Next message: [maemo-commits] r16068 - projects/haf/branches/hildon-thumbnail/daemonize/thumbs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: pvanhoof
Date: 2008-09-08 20:36:32 +0300 (Mon, 08 Sep 2008)
New Revision: 16067
Modified:
projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.c
Log:
Memleak fix
Modified: projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.c
===================================================================
--- projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.c 2008-09-08 17:34:37 UTC (rev 16066)
+++ projects/haf/branches/hildon-thumbnail/daemonize/thumbs/hildon-thumbnail-factory.c 2008-09-08 17:36:32 UTC (rev 16067)
@@ -364,8 +364,11 @@
callback, user_data, HILDON_THUMBNAIL_FLAG_CROP, -1);
}
-static void on_cancelled (DBusGProxy *proxy, GError *error, gpointer userdata)
+static void
+on_cancelled (DBusGProxy *proxy, GError *error, gpointer userdata)
{
+ ThumbsItem *item = userdata;
+ g_hash_table_replace (tasks, (gpointer) item->handle_id, item);
}
void hildon_thumbnail_factory_cancel(HildonThumbnailFactoryHandle handle)
@@ -378,7 +381,7 @@
return;
org_freedesktop_thumbnailer_Generic_unqueue_async (proxy, item->handle_id,
- on_cancelled, NULL);
+ on_cancelled, item);
}
- Previous message: [maemo-commits] r16066 - projects/haf/branches/hildon-thumbnail/daemonize/thumbs
- Next message: [maemo-commits] r16068 - projects/haf/branches/hildon-thumbnail/daemonize/thumbs
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
