diff options
author | Ted Gould <ted@gould.cx> | 2010-01-19 17:21:22 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-01-19 17:21:22 -0600 |
commit | e8d460427dd2147f2d8e7f4d648f4a49a3afaed3 (patch) | |
tree | df961424e30e65db1fec749ca76651401d892656 /src | |
parent | 08fef8dc585407e88d27da07a7c6fd726303a0dd (diff) | |
download | ayatana-indicator-application-e8d460427dd2147f2d8e7f4d648f4a49a3afaed3.tar.gz ayatana-indicator-application-e8d460427dd2147f2d8e7f4d648f4a49a3afaed3.tar.bz2 ayatana-indicator-application-e8d460427dd2147f2d8e7f4d648f4a49a3afaed3.zip |
Protecting our _new a little bit.
Diffstat (limited to 'src')
-rw-r--r-- | src/application-service-appstore.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c index 2121a0d..e734bdd 100644 --- a/src/application-service-appstore.c +++ b/src/application-service-appstore.c @@ -652,6 +652,7 @@ application_service_appstore_application_remove (ApplicationServiceAppstore * ap ApplicationServiceAppstore * application_service_appstore_new (AppLruFile * lrufile) { + g_return_val_if_fail(IS_APP_LRU_FILE(lrufile), NULL); ApplicationServiceAppstore * appstore = APPLICATION_SERVICE_APPSTORE(g_object_new(APPLICATION_SERVICE_APPSTORE_TYPE, NULL)); ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE_GET_PRIVATE(appstore); priv->lrufile = lrufile; |