[maemo-commits] [maemo-commits] r13507 - projects/haf/trunk/hildon-thumbnail/thumbs
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Thu Aug 30 19:45:31 EEST 2007
- Previous message: [maemo-commits] r13506 - in projects/haf/trunk/hildon-desktop: . src
- Next message: [maemo-commits] r13508 - in projects/haf/trunk/hildon-thumbnail: . debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: marivoll
Date: 2007-08-30 19:45:30 +0300 (Thu, 30 Aug 2007)
New Revision: 13507
Modified:
projects/haf/trunk/hildon-thumbnail/thumbs/thumber-gdk-pixbuf.c
Log:
* thumbs/thumber-gdk-pixbuf.c (thumbnailer_oom_func): Do not
output debugging message. Doing so might call malloc which would
result in a loop (N63712). Thanks Leonid!
Modified: projects/haf/trunk/hildon-thumbnail/thumbs/thumber-gdk-pixbuf.c
===================================================================
--- projects/haf/trunk/hildon-thumbnail/thumbs/thumber-gdk-pixbuf.c 2007-08-30 15:02:29 UTC (rev 13506)
+++ projects/haf/trunk/hildon-thumbnail/thumbs/thumber-gdk-pixbuf.c 2007-08-30 16:45:30 UTC (rev 13507)
@@ -220,8 +220,11 @@
static void
thumbnailer_oom_func (size_t cur, size_t max, void *data)
{
- ULOG_DEBUG_F("OOM: %u of %u!", cur, max);
- exit(1);
+ /* We can't do much here other than exit. Even printing might
+ allocate memory which would put us into a loop.
+ */
+
+ exit(1);
}
int main(int argc, char **argv)
- Previous message: [maemo-commits] r13506 - in projects/haf/trunk/hildon-desktop: . src
- Next message: [maemo-commits] r13508 - in projects/haf/trunk/hildon-thumbnail: . debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
